﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BluSteamClient.Model.Utility;

namespace BluSteamClient.Model.CommandImplementation
{
    public class LogoutCommand : Command
    {
        public void Execute()
        {
            PacketReceiver.Instance.Stop();
            TcpNetwork.Send(ProtocolBuilder.BuildLogoutString(Session.Username));
            TcpNetwork.Disconnect();
        }
    }
}
